package homework.homework_1;

/**
 * 负责搬运的电脑
 */
public class Remove implements Runnable{
    Computer c;

    public Remove(){}

    public Remove(Computer c){
        this.c = c;
    }

    @Override
    public void run() {
        while(true){
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            c.remove();
        }
    }
}
